<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Error Report</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../../../../css/mui.min.css">
		<link rel="stylesheet" href="../../../../css/global.css">
		<link rel="stylesheet" href="../../../../css/style.css">

	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">Error Report</h1>
		</header>
		<div class="mui-content">
			<div class="details_con">
				<div class="clum">
					<span class="name">服务编号</span>
					<span class="txt" id="serviceNo"></span>
				</div>
				<div class="clum">
					<span class="name">姓名</span>
					<span class="txt">170001</span>
				</div>
				<div class="clum">
					<span class="name">部门</span>
					<span class="txt">2020-02-02</span>
				</div>
				<div class="clum">
					<span class="name">PO#</span>
					<span class="txt">安装</span>
				</div>
				<div class="clum">
					<span class="name">仪器型号</span>
					<span class="txt">安徽医科大学第一附属医院</span>
				</div>
				<div class="clum">
					<span class="name">序号</span>
					<span class="txt">VIP</span>
				</div>
				<div class="clum">
					<span class="name">客户单位中文名称</span>
					<span class="txt">11700001</span>
				</div>
				<div class="clum">
					<span class="name">客户单位英文名称</span>
					<span class="txt" id="enCompanyName">170001</span>
				</div>
				<div class="clum">
					<span class="name">Error发生日期</span>
					<span class="txt" id='errorDate'></span>
				</div>
				<div class="clum autoHeight">
					<span class="name">问题描述</span>
					<div class="clear"></div>
					<textarea class="textarea" id="problemStatement" style="margin-bottom: 0;"></textarea> 
				</div>
				<div class="clum autoHeight">
					<span class="name">原因</span>
					<textarea class="textarea" id="rootCause" style="margin-bottom: 0;"></textarea> 
				</div>
				<div class="clum autoHeight">
					<span class="name">补救措施</span>
					<textarea class="textarea" id="correctiveActionTaken" style="margin-bottom: 0;"></textarea> 
				</div>
				<div class="clum">
					<span class="name">跟踪日期</span>
					<span class="txt" id='trackDate'></span>
				</div>
				<div class="clum">
					<span class="name">Error代码类别</span>
					<span class="txt" id="parentCode"></span>
				</div>
				<div class="clum">
					<span class="name">Error代码<em class="t_red">*</em></span>
					<span class="txt" id="errCode"></span>
				</div>
				<div class="clum">
					<span class="name">Error分类</span>
					<span class="txt" id="errType"></span>
				</div>
				<div class="clum autoHeight">
					<span class="name">Error代码描述</span>
					<div class="clear"></div>
					<textarea class="textarea" id="errLongdesc" style="margin-bottom: 0;"></textarea> 
				</div>
				<div class="clum nobor autoHeight">
					<span class="name">Error责任人</span>
					<span class="txt" id="errResponman"></span>
				</div>
				</div>
				
				<div class="line"></div>
				<div class="my-content-cell" id= "partsList">
					<div class="inline-block">
						<em class="d_tip">备件列表</em>
						<span class="mui-icon mui-icon-arrowright arrow-right-position"></span>
					</div>
				</div>
				<div class="my-content-cell" id= "pictureList">
					<div class="inline-block">
						<em class="d_tip">图片信息列表</em>
						<span class="mui-icon mui-icon-arrowright arrow-right-position"></span>
					</div>
				</div>
			</div>
			<div class="btn_box">
				<span class="fl red" id="closeReport">关闭报告</span>
			</div>
			<div style="height: 50px;"></div>
		</div>

		<!-- js代码 start -->

		<!-- 基础js start -->
		<script src="../../../../js/mui.min.js"></script>
		<script src="../../../../js/utils/h.js"></script>
		<script src="../../../../js/common.js"></script>
		<script src="../../../../js/constant.js"></script>
		<script src="../../../../js/utils/base64.js"></script>
		<script src="../../../../js/utils/md5.js"></script>
		<script src="../../../../js/utils/sortMap.js"></script>
		<script src="../../../../js/utils/http.js"></script>
		<script src="../../../../js/app.js"></script>
		<!-- 基础js end -->

		<script type="text/javascript" charset="utf-8">
			(function($, doc) {
				$.init();

				$.plusReady(function() {
					var self = plus.webview.currentWebview();
					console.log(self.errId)
					ajaxGet(BASE_URL + "cc/error/report/detailErrorReport", {
						id: self.errId
					}, function(data) {
						if (data.code === 200) {
							h('#errorDate').html(data.data.errorDate)
							h('#enCompanyName').html(data.data.enCompanyName)
							h('#problemStatement').html(data.data.problemStatement)
							h('#rootCause').html(data.data.rootCause)
							h('#correctiveActionTaken').html(data.data.correctiveActionTaken)
							h('#trackDate').html(data.data.trackDate)
							h('#parentCode').html(data.data.parentCode)
							h('#errCode').html(data.data.errCode)
							h('#errType').html(data.data.errType)
							h('#errLongdesc').html(data.data.errLongdesc)
							h('#errResponman').html(data.data.errResponman)
							h('#serviceNo').html(data.data.serviceNo)
						} else {
							app.toast(data.msg)
						}
					}, function(errorMsg) {
						app.toast(errorMsg)
					});
					
					//备件列表
					h('#partsList').tap(function() {
						app.jumpTo('/view/service/report/errorhot/sparePartsList.html','view/service/report/errorhot/sparePartsList.html',{serviceNo:serviceNo,helpId:"1"})
					})
					//图片列表
					h('#pictureList').tap(function() {
						app.jumpTo('/view/service/picture/list.html','view/service/picture/list.html',{serviceNo:serviceNo,helpId:"1",syncFlag:1})
					})
				});
			}(mui, document));
		</script>
		<!-- js代码 end -->

	</body>

</html>
